#pragma once
#include <log4cpp/Category.hh>

class HttpServer
{
public:
	HttpServer();
	~HttpServer();
	void start();
	unsigned short getPort();
private:
	static int server_event_thread(void* arg);
private:
	unsigned short port;
	std::thread* eventThread;
	volatile int abortRequest = 0;
	static log4cpp::Category& logger;
};

